import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';

import Home from '../pages/home';
import Profile from '../pages/profile';
import Work from '../pages/work';

class Router extends Component {
    render() {
        return (
            <BrowserRouter>
                <Route exact path="/" component={ Home } />
                <Route path="/profile" component={ Profile } />
                <Route path="/works" component={ Work } />
            </BrowserRouter>
        );
    }
}

Router.displayName = 'Router';

export default Router;
